package net.thxjj.adminServer.dao;

import net.thxjj.adminServer.entity.onenet.OnetEvent;
import net.thxjj.adminServer.util.ParameterMap;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OneNetDataDao {

    public void saveDeviceData(List<OnetEvent> list);

    public void saveSingleDevLog(OnetEvent onetEvent);

    public OnetEvent getSmokeStatus(@Param("device_id")String device_id);

    public OnetEvent getSmokeLoginEvent(@Param("device_id")String device_id);

    public List<OnetEvent> getSmokeStatusList(@Param("device_id")String device_id);

    public List<OnetEvent> getSmokeStatusListByTime(@Param("device_id")String device_id,@Param("start_time")long start_time,@Param("end_time")long end_time);

    public List<OnetEvent> getSmokeAllListByTime(@Param("device_id")String device_id,@Param("start_time")long start_time,@Param("end_time")long end_time);

    public List<OnetEvent> getSmokeLoginEventList(@Param("device_id")String device_id,@Param("start_time")long start_time);

    public List<ParameterMap> getLoginErrorList(@Param("device_id")String device_id);


    public OnetEvent getNewestSmokeStatus(@Param("device_id")String device_id,@Param("time")long time);

    public List<OnetEvent> getAllOnetData();

}
